{include file="{$smarty.const.APP_PATH}/Admin/View/Public/table.head.html"}
<script>
{literal}
    $(function(){

        $('.skin-color').click(function(){

            $('head').append("<link id='skinstyle' rel='stylesheet' href='__PUBLIC__/Admin/tpl/css/style."+$(this).attr('href')+".css' type='text/css' />");   

            $.post('__URL__/changecolor',{'color':$(this).attr('href')},function(data){
                // alert(data);
                        
            });
            return false;
        });
    });
{/literal}
</script>
<body onload = "startTime();">

<div class="mainwrapper">
    
{include file="{$smarty.const.APP_PATH}/Admin/View/Public/menu.body.html"}
    
    <!-- START OF RIGHT PANEL -->
    <div class="rightpanel">
        {include file="{$smarty.const.APP_PATH}/Admin/View/Public/users.body.html"}<!--右边头部-->
        <div class="breadcrumbwidget">
            <ul class="skins">
                <li><a href="default" class="skin-color default"></a></li>
                <li><a href="orange" class="skin-color orange"></a></li>
                <li><a href="dark" class="skin-color dark"></a></li>
                <li>&nbsp;</li>
                <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
                <li class="wide"><a href="" class="skin-layout wide"></a></li>
            </ul><!--skins-->
            <ul class="breadcrumb">
                <li><a href="__APP__/Index/main">Home</a> <span class="divider">/</span></li>
                <li><a href="#">车辆管理</a> <span class="divider">/</span></li>
                <li class="active">修改车辆</li>
            </ul>
        </div><!--breadcrumbs-->
        <div class="pagetitle">
            <h1>修改车辆</h1> <span>用来修改车辆信息</span>
        </div><!--pagetitle-->
        
        <div class="maincontent">
            <div class="contentinner">
            
                <h4 class="widgettitle">修改车辆</h4>
                <form class="form-horizontal" id="form-validate" action="{$smarty.const.__ACTION__}" method="post" enctype="multipart/form-data" />
                    <table id="datatables" class="table table-bordered table-striped responsive">
                              <tr>
                                <td rowspan='7'></td>
                                <td width="42%" rowspan="7" style="border-left:0px;">
                                <img src="/Public/Upload/{$carInfo['pic']}" width="400" height='300'/>
                                </td>
                                <th width="17%">名称</th>
                                <td width="41%">
                                  <input type="hidden" name="car_id" value="{$carInfo['car_id']}" />
                                  <input type="text" name='name'  class="grd-white" value="{$carInfo['name']}"/>
                                </td>
                              </tr>
                              <tr>
                                <th>上传</th>
                                <td><input type="file" class="grd-white" name="pic" id="pic" /></td>
                              </tr>
                              <tr>
                                  <th>价格</th>
                                  <td>
                                  <input type="text" name='price' class="grd-white" value="{$carInfo['price']}"/>
                                  </td>
                            </tr>
                            <tr>
                                  <th>座位数</th>
                                  <td><input type="text" name='number_of_people' class="grd-white" value="{$carInfo['number_of_people']}"/></td>
                             </tr>
							  <tr>
                                  <th>可携带行李数</th>
                                  <td><input type="text" name='number_of_baggage' class="grd-white" value="{$carInfo['number_of_baggage']}"/></td>
                             </tr>
                            <tr>
                                  <th>汽车是否自动挡</th>
                                  <td>
							<span class="radio"><label><input type="radio" value='1' name="car_operation" {if $carInfo['car_operation']==1}checked{/if}>自动档<label></span>
							<span class="radio"><label><input type="radio" value='0' name="car_operation"{if $carInfo['car_operation']==0}checked {/if} >手动档</label></span>
								  </td>
                             </tr>
                            <tr>
                                  <th>上架时间</th>
                                  <td>{date({$carInfo['add_time']}|date_format:"%Y/%m/%d")}</td>
                              </tr>
                          
                          
                            <tr height='100' class="describe">
                                  <th height="50" >车辆描述</th>
                                  <td colspan="3">
                                    <textarea name='describe' cols='93' rows='5' style="height:100px;width:98%; resize:none;" />{$carInfo['describe']}</textarea>
                                  </td>
                            </tr>
                            <tr>
                                  <td height="50" colspan="4" >
                                        <button type="submit" class="btn btn-primary btn-lg text">修改</button>
                                  </td>
                            </tr>
                        </tbody>
                    </table>
                    </form>     
                
            </div><!--contentinner-->
        </div><!--maincontent-->
        
    </div><!--mainright-->
    <!-- END OF RIGHT PANEL -->
    
    <div class="clearfix"></div>
    
    <div class="footer">
        <div class="footerleft">快达租赁管理 v1.0</div>
      <div class="footerright">&copy; twen_Yee </div>
    </div><!--footer-->
    
</div><!--mainwrapper-->

</body>
</html>